<?php
namespace app\common\enums;

/**
 * @author zi-m.cn
 *  错误信息类
 */
class ResultEnum
{
    /**
                * 请求成功
     */
    public const SUCCESS = [
        'msg'=>'成功',
        'code'=>0
    ];
    
    /**
                * 请求错误
     */
    public const ERROR = [
        'msg'=>'请求错误',
        'code'=>1
    ];
    
    /**
                * 参数不正确
     */
    public const PARAM_ERROR = [
        'msg'=>'参数不正确',
        'code'=>2
    ];
    
    /**
                * 操作错误
     */
    public const OPERATE_ERROR =[
        'msg'=>'操作错误',
        'code'=>3
    ];
    
     /**
                 * 登录信息不正确
     */
    public const LOGIN_FAIL = [
        'msg'=>'登录信息不正确',
        'code'=>10
    ];
    
    /**
                 * 登录过期
     */
    public const LOGIN_EXPIRES = [
        'msg'=>'登录过期',
        'code'=>11
    ];
    
    /**
                  * 退出成功
     */
    public const LOGOUT_SUCCESS = [
        'msg'=>'登录成功',
        'code'=>12
    ];
    
    /**
                   * 添加失败
     */
    public const WRITE_ERROR = [
        'msg'=>'添加失败',
        'code'=>20
    ];
    
    /**
                * 更新失败
     */
    public const UPDATE_ERROR = [
        'msg'=>'更新失败',
        'code'=>21
    ];
    
    /**
                * 删除失败
     */
    public const DEL_ERROR = [
        'msg'=>'删除失败',
        'code'=>22
    ];
    
    /**
                * 查询失败
     */
    public const FIND_ERROR =[
        'msg'=>'查询失败',
        'code'=>23
    ];
    
    /**
     * OSS上传失败
     */
    public const OSS_UPLOAD_ERROR =[
        'msg'=>'OSS上传失败',
        'code'=>30
    ];
    
    /**
                 * 上传失败
     */
    public const UPLOAD_ERROR =[
        'msg'=>'上传失败',
        'code'=>31
    ];
    
   /**
            * 检测失败
    */
    public const ChECK_ERROR =[
        'msg'=>'检测失败',
        'code'=>40
    ];
    
}

